package com.huangd.platform;

import com.huangd.platform.modules.sys.entity.to.GamesTo;
import com.huangd.platform.common.utils.ChannelUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@SpringBootTest
@RunWith(SpringRunner.class)
public class test {

    @Test
    public void test2() {

        List<GamesTo.GameTo> games = GamesTo.getGames();
        List<GamesTo.ChannelTo> channels = GamesTo.getChannels();
        System.out.println("端口号:" + games.toString());
        System.out.println("渠道:" + channels.toString());
    }
    @Test
    public void test3() {

        List<String> gameChannels = ChannelUtils.getGameChannels(10);
        System.out.println(gameChannels.toString());
    }
    @Test
    public void test4() {


        List<String> ios = ChannelUtils.getChannels("all", 2);
        System.out.println(ios.toString());
    }
}

